package com.losdun.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.losdun.product.domain.ProductAttribute;
import com.losdun.product.domain.vo.ProductAttributeVo;
import com.losdun.product.domain.vo.TreeSelectVo;

import java.util.List;

/**
 * @author sword.ye
 * @date 2025/3/9
 **/

public interface ProductAttributeService extends IService<ProductAttribute>  {
    boolean batchInsert(Long id, List<TreeSelectVo> attrs);

    void batchUpdate(Long id, List<TreeSelectVo> attrs);

    List<ProductAttributeVo> queryAttributesByProductId(Long id);

    /**
     * 根据产品ID删除挂链表
     * @param productId
     */
    void removeByProductId(Long productId);
}
